package org.blogwu.learn.jvmlearn.class1;

public class MyTest11 {
    public static void main(String[] args) {
        System.out.println(Child3.a);
        Child3.doSomeThing();
    }
}


class Parent3 {
    static int a = 3;

    static {
        System.out.println("Parent3 static block");
    }

    static void doSomeThing() {
        System.out.println("do Something");
    }

}

class Child3 extends Parent3 {
    static int b = 3;

    static {
        System.out.println("Child3 static block");
    }
}

